export const constant_route = [
  {
    // 主页路由
    path: '/',
    component: () => import('../layout/index.vue'),
    name: 'home',
    redirect: '/index',
    children: [
      {
        // 首页
        path: '/index',
        component: () => import('../views/index/index.vue'),
        name: 'index',
      },
      {
        // 探索页
        path: '/discovery',
        component: () => import('../views/discovery/index.vue'),
        name: 'discovery',
      },
      {
        // 摄像师介绍页
        path: '/photoers',
        component: () => import('../views/photoers/index.vue'),
        name: 'photoers',
      },
      {
        // 摄像师招聘页
        path: '/offers',
        component: () => import('../views/offers-info/index.vue'),
        name: 'offers',
      },
      {
        // 标签页
        path: '/tags',
        component: () => import('../views/tags/index.vue'),
        name: 'tags',
      },
    ],
  },
  {
    // 没匹配到返回的路由，pathmath配合正则使用的
    path: '/:pathMatch(.*)*',
    redirect: '/',
    name: 'Any',
  },
];
